package ysq.xyg.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import ysq.xyg.base.BaseDao;
import ysq.xyg.model.Receiving;

import java.util.List;

@Repository
public interface ReceivingDao extends BaseDao<Receiving> {

    /**
     * 查询
     */
    List<Receiving> selectEntity(Receiving receiving);

    /**
     * 根据主键查询
     */
    Receiving selectEntityById(@Param("id") String id);

    /**
     * 获取最新的一条中奖记录
     */
    Receiving selectLatelyEntity();
}